/**
 * 
 */
package desigin.pattern.th3.createtype.Singleton;

/**
 * @author dev-wanghaishen   2011-12-4
 *
 */
public class ConfigFile3 {
	
	
	
	private ConfigFile3(){
		
	}
	
	
	//线程安全，而且满足了延迟加载
	
	public static ConfigFile3 getConfigFile(){
		
		return ConfigFileInner.config;
	}
	
	
	/***
	 *  静态内部类会被延迟加载
	 * @author dev-wanghaishen   2011-12-4
	 *
	 */
	private static class ConfigFileInner{
		private static ConfigFile3 config = new ConfigFile3();
	}
	
}
